const {defineConfig} = require("@vue/cli-service");
const path = require("path");

module.exports = defineConfig({
    transpileDependencies: true,
    publicPath: './',

    configureWebpack: {
        resolve: {
            alias: {
                "@": path.resolve(__dirname, "src"),
                "utils": "@/utils"
            },
        },
    },
    devServer: {
        port: 8080,
        hot: true,
        open: true,
        proxy: {
            "/api": {
                target: "https://yuzd.lefenglian.top",
                // target: "https://www.weisou.online/wut_port",
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
});
